cssstyle: Only create PangoAttrList if there are attribtues
authorTimm Bäder <mail@baedert.org>
Sun, 12 Apr 2020 07:22:38 +0000 (09:22 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 17 Apr 2020 13:21:00 +0000 (15:21 +0200)
commit584a71ae960c76e1fc715f0f11e9834ab0ca4471
treefece0fe2d076115e28dfa59d7fcbc963dd4081e5
parent2e14ea84f331613b130e6494b2ccbaba3c85d0cc
cssstyle: Only create PangoAttrList if there are attribtues

Don't allocate a new GString if we never need it and therefore don't
create the PangoAttrList if we have no attributes anyway. Update callers
to handle the possible NULL return value.
gtk/gtkcssstyle.c
gtk/gtklabel.c